package com.tjetc.hw.hw7;

import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class MainApp {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(System.in);
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\info.txt");
        int num;
        byte[] b = new byte[1024];
        while((num = bis.read(b)) != 886){
            fileOutputStream.write(b,0,num);
        }
    }
}
